package com.sendi.common.util;

import java.util.HashMap;

public class Constants {
	public final String EXT_ROOT = "results";
	public final String EXT_TOTAL_PROPERTY = "totalCount";
 
	public enum SYS_SWITCH {TEST,REAL};
	public final SYS_SWITCH sys_switch = SYS_SWITCH.TEST;
	
	public static String CACHE_WARNINGLIST = "warningList";
	
	// 以这个变量名保存在session中
	public static String SESSION_SQL = "SQL_IN_SESSION";
	public static String SESSION_BEANS = "BEANS_IN_SESSION";
	public static String SESSION_DETAIL_BEANS = "DETAIL_BEANS_IN_SESSION";
	public static String SESSION_CONDITION = "CONDITION_IN_SESSION";
	public static String SESSION_DETAIL_CONDITION = "DETAIL_CONDITION_IN_SESSION";
	
	// 忙时周期
	public static String CYCLE_TYPE_DAY = "DAY";		//天
	public static String CYCLE_TYPE_WEEK = "WEEK";	//周
	public static String CYCLE_TYPE_MONTH = "MONTH";	//月
	public static HashMap<String,String> CYCLE_TYPE_MAP = new HashMap<String,String>();
	static{
		CYCLE_TYPE_MAP.put(CYCLE_TYPE_DAY, "天");
		CYCLE_TYPE_MAP.put(CYCLE_TYPE_WEEK, "周");
		CYCLE_TYPE_MAP.put(CYCLE_TYPE_MONTH, "月");
	}
	// 忙时范围
	public static String DEV_TYPE_TBS_HOUR = "TBS_HOUR";			//网元忙时
	public static String DEV_TYPE_DXT_HOUR = "DXT_HOUR";            //交换机忙时
	public static String DEV_TYPE_SYSTEM_HOUR = "SYSTEM_HOUR";		//系统忙时
	public static String DEV_TYPE_TBS_QUARTER = "TBS_QUARTER";			//网元忙刻
	public static String DEV_TYPE_DXT_QUARTER = "DXT_QUARTER";			//交换机忙刻
	public static String DEV_TYPE_SYSTEM_QUARTER = "SYSTEM_QUARTER";		//系统忙刻
	public static HashMap<String,String> DEV_TYPE_MAP = new HashMap<String,String>();
	static{
		DEV_TYPE_MAP.put(DEV_TYPE_TBS_HOUR, "网元忙时");
		DEV_TYPE_MAP.put(DEV_TYPE_DXT_HOUR, "交换机忙时");
		DEV_TYPE_MAP.put(DEV_TYPE_SYSTEM_HOUR, "系统忙时");
		DEV_TYPE_MAP.put(DEV_TYPE_TBS_QUARTER, "网元忙刻");
		DEV_TYPE_MAP.put(DEV_TYPE_DXT_QUARTER, "交换机忙刻");
		DEV_TYPE_MAP.put(DEV_TYPE_SYSTEM_QUARTER, "系统忙刻");
		
	}
	
	public static String NUMBER_FORMAT_DOUBLE_TWO = "#0.00";
	
	public static HashMap<String,String> WARN_INFO_ITEM = new HashMap<String,String>();
	static{
		 
	}
	
	public static HashMap<String,String> KNOWLEDGE_BASE_CATEGORIES;

	// 告警级别
	public static String WARNLEVEL_TTRXPREWARN = "时隙预警";
	public static String WARNLEVEL_PREWARN = "预警";
	public static String WARNLEVEL_WARN = "告警";
	public static String WARNLEVEL_CJWARN = "采集告警";
	public static String WARNLEVEL_CONTINUEWARN = "连续告警";
	public static HashMap<String,String> WARNLEVEL_MAP = new HashMap<String,String>();
	static{
		WARNLEVEL_MAP.put(WARNLEVEL_PREWARN, "预警");
		WARNLEVEL_MAP.put(WARNLEVEL_WARN, "告警");
		WARNLEVEL_MAP.put(WARNLEVEL_CONTINUEWARN, "连续告警");
	}
	
	// 告警类型
	public static String WARNTYPE_NORMAL = "普通告警";
	public static String WARNTYPE_CONTINUE = "持续告警";
	public static HashMap<String,String> WARNTYPE_MAP = new HashMap<String,String>();
	static{
		WARNTYPE_MAP.put(WARNTYPE_NORMAL, "普通告警");
		WARNTYPE_MAP.put(WARNTYPE_CONTINUE, "持续告警");
	}
	
	// 对象类型
	public static String OBJTYPE_TBS = "基站告警";
	public static String OBJTYPE_COLLECT = "采集告警";
	public static String OBJTYPE_EXTEND = "外部告警";
	public static HashMap<String,String> OBJTYPE_MAP = new HashMap<String,String>();
	static{
		OBJTYPE_MAP.put(OBJTYPE_TBS, "基站告警");
		OBJTYPE_MAP.put(OBJTYPE_EXTEND, "外部告警");
	}
	
	// 告警状态
	public static String WARN_STATUS_INIT = "活动";
	public static String WARN_STATUS_COMFIRM = "确认";
	public static String WARN_STATUS_CLEAR = "消除";
	public static String WARN_STATUS_DEAL = "确认、处理";
	public static String WARN_STATUS_COMFIRM_CLEAR = "确认、清除";
	public static String WARN_STATUS_COMFIRM_DEAL_CLEAR = "确认、处理、清除";
	
	public static String THRESHOLD_STATUS_ON = "正常";
	public static String THRESHOLD_STATUS_HOLD = "挂起";
	
	public static HashMap<String,String> DATA_REPORT_TYPE_MAP = new HashMap<String,String>();
	static{
		DATA_REPORT_TYPE_MAP.put("DxtSpeechLineData", "交换机语音链路报告");
		DATA_REPORT_TYPE_MAP.put("DxtGroupCallData", "交换机组呼报告");
		DATA_REPORT_TYPE_MAP.put("DxtIndiCallData", "交换机个呼报告");
		DATA_REPORT_TYPE_MAP.put("HandoverData", "交换机基站切换报告");
		DATA_REPORT_TYPE_MAP.put("DxtTbsSDSStatus", "交换机基站短信状态报告");
		DATA_REPORT_TYPE_MAP.put("TBSGroupCallData", "基站组管理统计报告");
		DATA_REPORT_TYPE_MAP.put("RadiaoNetworkData", "无线网络基站统计报告");
		DATA_REPORT_TYPE_MAP.put("TbsMobility", "基站位置登记统计报告");
	}
}
